from django.conf.urls import patterns, include, url
import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.STATICFILES_DIRS[0], 'show_indexes': True}),
    url(r'^public/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT, 'show_indexes': True}),
    (r'^accounts/', include('registration.backends.minesite.urls')),
    url(r'^$', 'posts.views.index', name='index'),
    url(r'^cked/', include('cked.urls')),
    url(r'^pages/', include('posts.urls'), {'post_type': 1}),
    url(r'^posts/', include('posts.urls'), {'post_type': 2}),
    url(r'^cats/', include('posts.urls')),

    url(r'^admin/', include(admin.site.urls)),
)
